/**
 * @description: 检查数组各项相等
 * @param {*} arr The array
 * @return {*} array
 */
const allEqual = arr => arr.every(val => val === arr[0]);

module.exports = allEqual;
